<!-- 文章分类 模态框 -->
<div class="modal fade" id="articleType-modal" data-backdrop="static" data-keyboard="false" >
	<div class="modal-dialog" style="width:800px; height: 520px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">x</button>
				<h4 class="modal-title">分类</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div class="portlet light" style="margin-bottom: 0;">
							<div class="box-header">
								<div class="row">
									<div class="col-md-10">
										<form class="form searchForm" action="" method="post">
											<div class="form-inline">
												<input type="text" class="form-control" name="name" value="" placeholder="分类名称">
												&nbsp;&nbsp;&nbsp;
												<button type="button" class="btn btn-success doSearch" title="搜索">
													<i class="fa fa-search"></i> 搜索
												</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="portlet-body">
								<form class="form-horizontal" action=""  name="ajaxForm">
									<div class="">
										<table id="articleType-datatable" class="table table-bordered table-hover dataTable">
											<thead>
											<th>分类名称</th>
											<th>操作</th>
											</thead>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="modal-footer"></div>-->
		</div>
	</div>
</div>

<!-- 文章列表 模态框 -->
<div class="modal fade" id="article-modal" data-backdrop="static" data-keyboard="false" >
	<div class="modal-dialog" style="width:800px; height: 520px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">x</button>
				<h4 class="modal-title">列表</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div class="portlet light" style="margin-bottom: 0;">
							<div class="box-header">
								<div class="row">
									<div class="col-md-10">
										<form class="form searchForm" action="" method="post">
											<div class="form-inline">
												<input type="text" class="form-control" name="title" value="" placeholder="标题">
												&nbsp;&nbsp;&nbsp;
												<button type="button" class="btn btn-success doSearch" title="搜索">
													<i class="fa fa-search"></i> 搜索
												</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="portlet-body">
								<form class="form-horizontal" action=""  name="ajaxForm">
									<div class="">
										<table id="article-datatable" class="table table-bordered table-hover dataTable">
											<thead>
											<th>缩略图</th>
											<th>标题</th>
											<th>发布时间</th>
											<th>操作</th>
											</thead>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="modal-footer"></div>-->
		</div>
	</div>
</div>

<!-- 村子列表 模态框 -->
<div class="modal fade" id="village-modal" data-backdrop="static" data-keyboard="false" >
	<div class="modal-dialog" style="width:800px; height: 520px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">x</button>
				<h4 class="modal-title">村子</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div class="portlet light" style="margin-bottom: 0;">
							<div class="box-header">
								<div class="row">
									<div class="col-md-10">
										<form class="form searchForm" action="" method="post">
											<div class="form-inline">
												<input type="text" class="form-control" name="name" value="" placeholder="村名">
												&nbsp;&nbsp;&nbsp;
												<button type="button" class="btn btn-success doSearch" title="搜索">
													<i class="fa fa-search"></i> 搜索
												</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="portlet-body">
								<form class="form-horizontal" action=""  name="ajaxForm">
									<div class="">
										<table id="village-datatable" class="table table-bordered table-hover dataTable">
											<thead>
											<th>村图片</th>
											<th>村名</th>
											<th>操作</th>
											</thead>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="modal-footer"></div>-->
		</div>
	</div>
</div>

<!-- 农事分类 模态框 -->
<div class="modal fade" id="knowledgeType-modal" data-backdrop="static" data-keyboard="false" >
	<div class="modal-dialog" style="width:800px; height: 520px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">x</button>
				<h4 class="modal-title">农事分类</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div class="portlet light" style="margin-bottom: 0;">
							<div class="box-header">
								<div class="row">
									<div class="col-md-10">
										<form class="form searchForm" action="" method="post">
											<div class="form-inline">
												<input type="text" class="form-control" name="name" value="" placeholder="分类名称">
												&nbsp;&nbsp;&nbsp;
												<button type="button" class="btn btn-success doSearch" title="搜索">
													<i class="fa fa-search"></i> 搜索
												</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="portlet-body">
								<form class="form-horizontal" action=""  name="ajaxForm">
									<div class="">
										<table id="knowledgeType-datatable" class="table table-bordered table-hover dataTable">
											<thead>
											<th>图片</th>
											<th>分类名称</th>
											<th>排序</th>
											<th>创建时间</th>
											<th>操作</th>
											</thead>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="modal-footer"></div>-->
		</div>
	</div>
</div>

<!-- 农事列表 模态框 -->
<div class="modal fade" id="knowledge-modal" data-backdrop="static" data-keyboard="false" >
	<div class="modal-dialog" style="width:800px; height: 520px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">x</button>
				<h4 class="modal-title">农事知识</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div class="portlet light" style="margin-bottom: 0;">
							<div class="box-header">
								<div class="row">
									<div class="col-md-10">
										<form class="form searchForm" action="" method="post">
											<div class="form-inline">
												<input type="text" class="form-control" name="title" value="" placeholder="标题">
												&nbsp;&nbsp;&nbsp;
												<button type="button" class="btn btn-success doSearch" title="搜索">
													<i class="fa fa-search"></i> 搜索
												</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="portlet-body">
								<form class="form-horizontal" action=""  name="ajaxForm">
									<div class="">
										<table id="knowledge-datatable" class="table table-bordered table-hover dataTable">
											<thead>
											<th>图片</th>
											<th>标题</th>
											<th>排序</th>
											<th>发布时间</th>
											<th>操作</th>
											</thead>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="modal-footer"></div>-->
		</div>
	</div>
</div>

<!-- 特色专题列表 模态框 -->
<div class="modal fade" id="featurecolumn-modal" data-backdrop="static" data-keyboard="false" >
	<div class="modal-dialog" style="width:800px; height: 520px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">x</button>
				<h4 class="modal-title">特色专题</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div class="portlet light" style="margin-bottom: 0;">
							<div class="box-header">
								<div class="row">
									<div class="col-md-10">
										<form class="form searchForm" action="" method="post">
											<div class="form-inline">
												<input type="text" class="form-control" name="name" value="" placeholder="专题名称">
												&nbsp;&nbsp;&nbsp;
												<button type="button" class="btn btn-success doSearch" title="搜索">
													<i class="fa fa-search"></i> 搜索
												</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="portlet-body">
								<form class="form-horizontal" action=""  name="ajaxForm">
									<div class="">
										<table id="featurecolumn-datatable" class="table table-bordered table-hover dataTable">
											<thead>
											<th>图片</th>
											<th>专题名称</th>
											<th>排序</th>
											<th>操作</th>
											</thead>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="modal-footer"></div>-->
		</div>
	</div>
</div>

<!-- 特色内容列表 模态框 -->
<div class="modal fade" id="features-modal" data-backdrop="static" data-keyboard="false" >
	<div class="modal-dialog" style="width:800px; height: 520px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">x</button>
				<h4 class="modal-title">特色内容</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div class="portlet light" style="margin-bottom: 0;">
							<div class="box-header">
								<div class="row">
									<div class="col-md-10">
										<form class="form searchForm" action="" method="post">
											<div class="form-inline">
												<input type="text" class="form-control" name="title" value="" placeholder="特色标题">
												&nbsp;&nbsp;&nbsp;
												<button type="button" class="btn btn-success doSearch" title="搜索">
													<i class="fa fa-search"></i> 搜索
												</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="portlet-body">
								<form class="form-horizontal" action=""  name="ajaxForm">
									<div class="">
										<table id="features-datatable" class="table table-bordered table-hover dataTable">
											<thead>
											<th>图片</th>
											<th>特色标题</th>
											<th>发布时间</th>
											<th>操作</th>
											</thead>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="modal-footer"></div>-->
		</div>
	</div>
</div>

<!-- 微课堂分类 模态框 -->
<div class="modal fade" id="microclassroomType-modal" data-backdrop="static" data-keyboard="false" >
	<div class="modal-dialog" style="width:800px; height: 520px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">x</button>
				<h4 class="modal-title">微课堂分类</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div class="portlet light" style="margin-bottom: 0;">
							<div class="box-header">
								<div class="row">
									<div class="col-md-10">
										<form class="form searchForm" action="" method="post">
											<div class="form-inline">
												<input type="text" class="form-control" name="name" value="" placeholder="分类名称">
												&nbsp;&nbsp;&nbsp;
												<button type="button" class="btn btn-success doSearch" title="搜索">
													<i class="fa fa-search"></i> 搜索
												</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="portlet-body">
								<form class="form-horizontal" action=""  name="ajaxForm">
									<div class="">
										<table id="microclassroomType-datatable" class="table table-bordered table-hover dataTable">
											<thead>
											<th>分类名称</th>
											<th>操作</th>
											</thead>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="modal-footer"></div>-->
		</div>
	</div>
</div>

<!-- 产品分类 模态框 -->
<div class="modal fade" id="productType-modal" data-backdrop="static" data-keyboard="false" >
	<div class="modal-dialog" style="width:800px; height: 520px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">x</button>
				<h4 class="modal-title">产品分类</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div class="portlet light" style="margin-bottom: 0;">
							<div class="box-header">
								<div class="row">
									<div class="col-md-10">
										<form class="form searchForm" action="" method="post">
											<div class="form-inline">
												<input type="text" class="form-control" name="name" value="" placeholder="分类名称">
												&nbsp;&nbsp;&nbsp;
												<button type="button" class="btn btn-success doSearch" title="搜索">
													<i class="fa fa-search"></i> 搜索
												</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="portlet-body">
								<form class="form-horizontal" action=""  name="ajaxForm">
									<div class="">
										<table id="productType-datatable" class="table table-bordered table-hover dataTable">
											<thead>
											<th>分类名称</th>
											<th>操作</th>
											</thead>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="modal-footer"></div>-->
		</div>
	</div>
</div>

<!-- 产品列表 模态框 -->
<div class="modal fade" id="product-modal" data-backdrop="static" data-keyboard="false" >
	<div class="modal-dialog" style="width:800px; height: 520px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">x</button>
				<h4 class="modal-title">产品列表</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div class="portlet light" style="margin-bottom: 0;">
							<div class="box-header">
								<div class="row">
									<div class="col-md-10">
										<form class="form searchForm" action="" method="post">
											<div class="form-inline">
												{if condition="($admin->type == 3) OR ($admin->type == 6)"}
												{$selectarea['cityname']}->{$selectarea['xianname']}->{$selectarea['townname']}
												{if !$selectarea['villagename']}
												<select id="village" name="villageId" class="form-control"  ></select>
												{/if}
												{elseif condition="($admin->type == 4)"}
												{$selectarea['cityname']}->{$selectarea['xianname']}->{$selectarea['townname']}->{$selectarea['villagename']}
												{elseif condition="($admin->type == 2)"}
												{$selectarea['cityname']}->{$selectarea['xianname']}
												<select id="town" name="townId" class="form-control" data-hasvillage="on" ></select>
												<select id="village" name="villageId" class="form-control"  ></select>
												{elseif condition="($admin->type == 1)"}
												{$selectarea['cityname']}
												<select id="xian" name="xianId" class="form-control" ></select>
												<select id="town" name="townId" class="form-control" data-hasvillage="on" ></select>
												<select id="village" name="villageId" class="form-control"  ></select>
												{else/}
												<select id="city" name="cityId" class="form-control" ></select>
												<select id="xian" name="xianId" class="form-control" ></select>
												<select id="town" name="townId" class="form-control" data-hasvillage="on" ></select>
												<select id="village" name="villageId" class="form-control"  ></select>
												{/if}

												<input type="hidden" class="form-control city" name="city" value="">
												<input type="hidden" class="form-control xian" name="xian" value="">
												<input type="hidden" class="form-control town" name="town" value="">
												<input type="hidden" class="form-control village" name="village" value="">


												<!--<label>产品名 ：</label>-->
												<input type="text" class="form-control" name="title" value="" placeholder="产品名称">
												&nbsp;&nbsp;&nbsp;
												<button type="button" class="btn btn-success doSearch" title="搜索">
													<i class="fa fa-search"></i> 搜索
												</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="portlet-body">
								<form class="form-horizontal" action=""  name="ajaxForm">
									<div class="">
										<table id="product-datatable" class="table table-bordered table-hover dataTable">
											<thead>
											<th>封面图</th>
											<th>产品名称</th>
											<th>所属镇</th>
											<th>所属村</th>
											<th>产品售价</th>
											<th>创建时间</th>
											<th>操作</th>
											</thead>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--<div class="modal-footer"></div>-->
		</div>
	</div>
</div>


<input type="hidden" class="getregion_url" value="{:url('admin/region/getregion')}">
<input type="hidden" class="getvillage_url" value="{:url('admin/region/getvillage')}">
<input type="hidden" class="adminType" value="{$admin.type}">
<input type="hidden" class="adminCity" value="{$admin.cityId}">
<input type="hidden" class="adminXian" value="{$admin.xianId}">
<input type="hidden" class="adminTown" value="{$admin.townId}">
<input type="hidden" class="adminVillage" value="{$admin.villageId}">

<input type="hidden" class="articleType_url" value="{:url('admin/layer/getArticleType')}">
<input type="hidden" class="articleList_url" value="{:url('admin/layer/getArticleList')}">
<input type="hidden" class="villageList_url" value="{:url('admin/layer/getVillageList')}">
<input type="hidden" class="knowledgeType_url" value="{:url('admin/layer/getKnowledgeType')}">
<input type="hidden" class="knowledgeList_url" value="{:url('admin/layer/getKnowledgeList')}">
<input type="hidden" class="featurecolumnList_url" value="{:url('admin/layer/getFeaturecolumnList')}">
<input type="hidden" class="featuresList_url" value="{:url('admin/layer/getFeaturesList')}">
<input type="hidden" class="microclassroomType_url" value="{:url('admin/layer/getMicroclassroomType')}">
<input type="hidden" class="productType_url" value="{:url('admin/layer/getProductType')}">
<input type="hidden" class="productList_url" value="{:url('admin/layer/getProductList')}">

<script src="__STATIC__/admin/pages/js/searcharea.js" type="text/javascript"></script>